-- GENERATED SPELL FOR [Dwarven Spirit Guide] --


function spell0_31842(pUnit, Event) --@Spiritual Immunity,Self--
pUnit:FullCastSpellOnTarget(58729,pUnit)
pUnit:RegisterEvent('Sorts_31842', 556, 1)
end

function Sorts_31842(pUnit, Event)
local choix_sorts_31842 = math.random(0, 0)
if choix_sorts_31842 == 0 then
pUnit:RegisterEvent('spell0_31842', 1, 1)
end
end

function mob31842_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31842', math.random(1500, 3000), 1)
end

function mob31842_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31842_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31842_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31842, 1, 'mob31842_Action')
RegisterUnitEvent(31842, 2, 'mob31842_Leave')
RegisterUnitEvent(31842, 3, 'mob31842_Kill')
RegisterUnitEvent(31842, 4, 'mob31842_Die')
